﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users/Manage.Master" AutoEventWireup="true" CodeBehind="ItemsDisabled.aspx.cs" Inherits="OnlineAuction.Users.ItemsDisabled" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Css" runat="server">
    <style type="text/css">
        .style1 {
            width: 706px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_TopBar" runat="server">
    <div id="dv_TopBar">
        <a href="ManageHome.aspx">BACK</a>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_Content" runat="server">
    <asp:ScriptManager ID="scriptManager" runat="server" />
    <table cellpadding="5" cellspacing="5" class="style1">
        <caption style="font-size: larger; font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #FF6600">Items Disabled</caption>
        <tr>
            <td style="text-align: center">
                <asp:GridView ID="grvItems" runat="server" AutoGenerateColumns="false" Width="679px" OnRowCommand="grvItems_RowCommand" OnRowDeleting="grvItems_RowDeleting">
                    <Columns>
                        <asp:TemplateField HeaderText="Item ID">
                            <ItemTemplate>
                                <asp:Label ID="lbItemID" runat="server" Text='<%# Bind("ItemID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Item Name">
                            <ItemTemplate>
                                <asp:Label ID="lbItemName" runat="server" Text='<%# Bind("ItemName") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Expectation Price">
                            <ItemTemplate>
                                <asp:Label ID="lbItemName" runat="server" Text='<%# Bind("ExpectationPrice") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Current Price">
                            <ItemTemplate>
                                <asp:Label ID="lbItemName" runat="server" Text='<%# Bind("Price") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Winner">
                            <ItemTemplate>
                                <asp:Label ID="lbWinner" runat="server" Text='<%# Bind("Winner") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Time Finish Auction">
                            <ItemTemplate>
                                <asp:Label ID="lbItemName" runat="server" Text='<%# Bind("TimeFinishAuction") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Auction type">
                            <ItemTemplate>
                                <asp:Label ID="lbAuctionType" runat="server" Text='<%# Bind("AuctionTypeName") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Disable">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbDisable" runat="server" CommandName="Delete"
                                    CommandArgument='<%# Eval("ItemID")%>' Text="Delete"
                                    OnClientClick="return confirm('Do you want to delete this item now?');" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <asp:Label ID="lbEmpty" runat="server" Text="Can't find any items" />
                    </EmptyDataTemplate>
                </asp:GridView>
                <cc1:CollectionPager ID="cpItemsDisabled" runat="server" SectionPadding="10" SliderSize="5">
                </cc1:CollectionPager>
            </td>
        </tr>
        <tr>
            <td style="height: 30px; text-align: center" />
        </tr>
    </table>
</asp:Content>
